function make_latex_table_chris_output(all_panels,file_name,figure_name)



Table_Header={ '\begin{center} '                                                                                                 																
'\begin{table}   '                                                                                                																
''                                                                                                    																
'{\small \textsc{Table.} Simulation Results  } '                                                                                                    																
''                                                                                                 																
'\vspace{.05in} '                                                                                                 																
''                                                                                                        																
'\begin{tabular*}{\textwidth}{p{1.7cm} p{.9cm}  p{.8cm} p{.8cm} p{.8cm} p{.8cm} p{.8cm}  p{.8cm}  p{.8cm} }'                                                                                                                          																
''                                                                                                       																
''                                                                                                        																
''                                                                                                        																
''                                                                                                                                                                                                                																
'\hline          \hline                                                                  \\ '                                                                                                     																
'&	\ True \		& All		&	Double	&	Lasso	&	PL &  LCV	&	FS1	&	FS10 	\\'
};



Table_Closer = {'\hline'
'\end{tabular*}													'			
'\vspace{.1in}													'			
'\flushleft \textnormal{\footnotesize Monte Carlo results }		'														
'\end{table}		'														
'\end{center}	'
};
																

fid = fopen(file_name,'wt');

fprintf(fid, '%s\n', '\documentclass[preprint]{imsart}');
fprintf(fid, '%s\n', '\RequirePackage[OT1]{fontenc}');
fprintf(fid, '%s\n', '\RequirePackage{amsthm,amsmath}');
fprintf(fid, '%s\n', '\RequirePackage[numbers]{natbib}');
fprintf(fid, '%s\n', '\RequirePackage[colorlinks,citecolor=blue,urlcolor=blue]{hyperref}');
fprintf(fid, '%s\n', '\usepackage{float}');
fprintf(fid, '%s\n', '\usepackage{amsmath,amssymb,epsfig}');
fprintf(fid, '%s\n', '\usepackage{graphics}');
fprintf(fid, '%s\n', '\usepackage{tabularx}');
fprintf(fid, '%s\n', '\usepackage{imsart}');
fprintf(fid, '%s\n', '\usepackage{graphicx}');
fprintf(fid, '%s\n', '\begin{document}');

for row=1:length(Table_Header)
    fprintf(fid, '%s\n', Table_Header{row});
end
for panel=1:length(all_panels)
    panel_temp = all_panels{panel};
    for row=1:length(panel_temp) 
    fprintf(fid, '%s\n', panel_temp{row});
    end
end
for row=1:length(Table_Closer)
    fprintf(fid, '%s\n', Table_Closer{row});
end
fprintf(fid, '%s\n', ['\includegraphics[scale=.35]{',figure_name,'}']);
 fprintf(fid, '%s\n', '\end{document}');
fclose(fid);







